﻿using System;

namespace Creventive.Wpf.ShellFactory.Services
{
    internal class ContainerLifetimeServiceFactory : IServiceFactory
    {
        private object obj;

        public ContainerLifetimeServiceFactory(object obj)
        {
            if (obj == null)
                throw new ArgumentNullException("obj");
            this.obj = obj;
        }

        public object Create(IServiceContainer serviceContainer)
        {
            return this.obj;
        }
    }
}